home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 47
/
MOBICLIC 47.ISO
/
mac
/
DATA
/
CALEND
/
calen14.dir
/
00005_Script_be_timer
< prev
next >
Wrap
Text File
|
2002-09-19
|
1KB
|
53 lines
---SA-----1709
property pSprite,pFin
global gListe_Pistes_Occupees,gListePistes
---- rotation de l'aiguille en utilisant le timer comme incrΘment
--------------------------------------------------------------------
on beginsprite me
pfin = false
psprite = sprite(me.spritenum)
startTimer
the floatprecision = 1
--les n░ de pistes occcupΘes sont enregistrΘes dans la liste suivante
gListe_Pistes_Occupees = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
end
--------------------------------------------------------------------
on exitFrame me
angle = the timer/120.0
-- put angle
if angle <= 60 then
---
if gListe_Pistes_Occupees = glistePistes then
me.mFinDeJeu()
exit
end if
----
psprite.rotation = psprite.rotation + 0.20
else
me.mFinDeJeu()
end if
end
-----------------------****************************------mΘthodes privΘes
on mFinDeJeu me
--
if gListe_Pistes_Occupees <> glistePistes then
soncyber 2
cursor -1
go "rejouer"
else
soncyber 3
-- -- tempo avant de passer α l'Θcran suivant
startTimer
repeat while the timer < 2 * 60
updatestage
end repeat
niveauSon()
go "Mots Nouveaux"
end if
end